package com.atguigu.gulimall.product.fengin;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author ShiJieLin
 * @Date 2022/5/4 10:19
 * @Version 1.0
 */
@FeignClient("gulimall-seckill")
public interface SeckillFeignService {

    @GetMapping(value = "/sku/seckill/{skuId}")
    @ResponseBody
    R getSkuSeckilInfo(@PathVariable("skuId") Long skuId);
}
